Part Number Hot Search : 
PSA92 330M1 BF1211R VP0345N1 28168A N25F80 80186 ACTR4110
Product Description
Full Text Search
 

To Download ST16C552 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  exar corporation, 48720 kato road, fremont, ca 94538 (510) 668-7000 fax (510) 668-7017 ST16C552 ST16C552a plcc package dual uart with 16-byte fifo and parallel printer port rev. 3.30 description the ST16C552/ST16C552a (552/552a) is a dual universal asynchronous receiver and transmitter (uart) with an added bi-directional parallel port that is directly compatible with a centronics type printer. the parallel port is designed such that the user can configure it as general purpose i/o interface, or for connection to other printer devices. the 552/552a provides enhanced uart functions with 16 byte fifo?s, a modem control interface, and data rates up to 1.5mbps. onboard status registers provide the user with error indications and operational status. the system interrupts and control may be tailored to meet user requirements. an internal loop-back capability allows onboard diagnostics. a programmable baud rate generator is provided to select transmit and receive clock rates from 50 bps to 1.5 mbps. the 552/552a is available in a 68 pin plcc package. the 552/552a is compatible with the 16c450 and 16c550. the difference between the ST16C552 and ST16C552a is the logic state of the printer port, intp interrupt. the intp interrupt is active high (logic 1) on the ST16C552 whereas intp is active low (logic 0) on the ST16C552a part when the interrupt latch mode is selected. the 552/552a is fabricated in an advanced cmos process with power down mode to reduce the power consumption. the 552a does not support the power down mode. features pin to pin and functional compatible to st16c452/ 452ps, tl16c552 software compatible with ins8250, ns16c550 1.5 mbps transmit/receive operation (24mhz) 16 byte transmit fifo 16 byte receive fifo with error flags independent transmit and receive control modem and printer status registers uart port and printer port bi-directional printer port direction set by single control bit or 8 bit pattern (aa/55) modem control signals (-cts, -rts, -dsr, -dtr, -ri, -cd) programmable character lengths (5, 6, 7, 8) even, odd, or no parity bit generation and detection internal loop-back diagnostics ttl compatible inputs, outputs power down mode ordering information part number pin package operating temperature ST16C552cj68 68 plcc 0 c to + 70 c ST16C552acj68 68 plcc 0 c to + 70 c ST16C552ij68 68 plcc -40 c to + 85 c ST16C552aij68 68 plcc -40 c to + 85 c intb intp -slctin init -autofdxt -strobe gnd pd0 pd1 pd2 pd3 pd4 pd5 pd6 pd7 inta rdout -rxrdya -cdb gnd -rib -dsrb clk -csb gnd biden ack pe -busy slct vcc error rxb -rxrdyb gnd -ctsa -cda -ria -dsra -csa a2 a1 a0 -iow -ior -csp -reset vcc rxa -txrdyb intsel 9 8 7 6 5 4 3 2 1 68 67 66 65 64 63 62 61 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 ST16C552cj68 ST16C552acj68 txb -dtrb -rtsb -ctsb d0 d1 d2 d3 d4 d5 d6 d7 -txrdya vcc -rtsa -dtra txa
2 ST16C552/552a rev. 3.30 figure 1, block diagram d0-d7 -ior -iow -reset biden a0-a2 -csa -csb -csp i nt a,b intp -rxrdy -txrdy -dtr a,b -rts a,b -cts a,b -ri a,b -cd a,b -dsr a,b tx a,b rx a,b data bus & control logic register select logic modem control logic interrupt control logic transmit fifo registers transmit shift register receive fifo registers receive shift register inter connect bus lines & control signals clock & baud rate generator clk printer data ports pd0-pd7 printer control logic -strobe init -autofdx -selctin pe, select -busy, -ac k error
3 ST16C552/552a rev. 3.30 symbol description symbol pin signal type pin description a0 35 i address-0 select bit - internal registers address selection. a1 34 i address-1 select bit - internal registers address selection. a2 33 i address-2 select bit - internal registers address selection. -ack 68 i acknowledge (with internal pull-up) - general purpose input or line printer acknowledge (active low). a logic 0 from the printer, indicates successful data transfer to the print buffer. -autofdxt 56 i/o general purpose i/o (open drain, with internal pull-up) or automatic line feed (open drain input with internal pull-up). when this signal is low the printer should automatically line feed after each line is printed. biden 1 i bi-direction enable - pd7-pd0 direction select. a logic 0 sets the parallel port for i/o select register control. a logic 1 sets the parallel port for control register bit-5 control. busy 66 i busy (with internal pull-up) - general purpose input or line printer busy (active high). can be used as an output from the printer to indicate printer is not ready to accept data. clk 4 i clock input. - an external clock must be connected to this pin to clock the baud rate generator and internal circuitry (see programmable baud rate generator). -csa 32 i chip select a - a logic 0 at this pin enables the serial channel-a uart registers for cpu data transfers. -csb 3 i chip select b - a logic 0 at this pin enables the serial channel-b uart registers for cpu data transfers. -csp 38 i printer port chip select - (active low). a logic 0 at this pin enables the parallel printer port registers and/or pd7-pd0 for external cpu data transfers. d0-d7 14-21 i/o data bus (bi-directional) - these pins are the eight bit, three state data bus for transferring information to or from the controlling cpu. d0 is the least significant bit and the first data bit in a transmit or receive serial data stream.
4 ST16C552/552a rev. 3.30 symbol description symbol pin signal type pin description -error 63 i error, printer (with internal pull-up) - general purpose input or line printer error. this pin may be connected to the active low (logic 0) output of a printer to indicate an error condition. gnd 2,7,54 pwr signal and power ground. 27 init 57 i/o initialize (open drain, with internal pull-up) - general pur- pose i/o signal. this pin may be connected for initialization service of a connected line printer. generally when this signal is a logic 0, any connected printer will be initialized. int a/b 45,60 o interrupt output a/b ( three state active high) - these pins provide individual channel interrupts, int a-b. int a-b are enabled when mcr bit-3 is set to a logic 1, interrupts are enabled in the interrupt enable register (ier), and when an interrupt condition exists. interrupt conditions include: re- ceiver errors, available receiver buffer data, transmit buffer empty, or when a modem status flag is detected. -intp 59 o printer interrupt, - this pin can be used to signal the interrupt status of a connected printer. this pin basically tracks the -ack input pin, when intsel is a logic 0 and interrupts are enabled by bit-4 in the control register. a latched mode can be selected by setting intsel to a logic 1. in this case the interrupt -intp is generated normally but does not return to the inactive state until the trailing edge of the read cycle (-ior pin). -intp is three stated until con bit-4 is set to a logic 1. the difference between the ST16C552 and ST16C552a is the output state of intp. intp is active high (logic 1) on the ST16C552 whereas intp is active low (logic 0) on the ST16C552a part when the interrupt latch mode is selected. intsel 43 i interrupt select mode - this pin selects the interrupt type for the printer port (-intp). when this pin is a logic 0, the external -ack signal state is generally followed, minus some minor propagation delay. making this pin a logic 1 or connecting it to vcc will set the interrupt latched mode. in this case the printer interrupt (-intp) will not return to a logic 0 on the 552 or a logic 1 on the 552a (552a is inverted), until the trailing edge of -ior (end of the external cpu read
5 ST16C552/552a rev. 3.30 symbol description symbol pin signal type pin description cycle). -ior 37 i read strobe.- a logic 0 transition on this pin will place the contents of an internal register defined by address bits a0- a2 for either uart channels a/b or a0-a1 for the printer port, onto d0-d7 data bus for a read cycle by an external cpu. -iow 36 i w rite strobe.- a logic 0 transition on this pin will transfer the data on the internal data bus (d0-d7), as defined by either address bits a0-a2 for uart channels a/b or a0-a1 for the printer port, into an internal register during a write cycle from an external cpu. pd7-pd0 46-53 i/o printer data port (bi-directional three state) - these pins are the eight bit, three state data bus for transferring information to or from an external device (usually a printer). d0 is the least significant bit. pd7-pd0 are latched during a write cycle (output mode). pe 67 i paper empty - general purpose input or line printer paper empty (internal pull-up). this pin can be connected to provide a printer out of paper indication. rdout 44 o read out (active high) - this pin goes to a logic 1 when the external cpu is reading data from the 552/552a. this signal can be used to enable/disable external transceivers or other logic functions. -reset 39 i master reset (active low) - a logic 0 on this pin will reset the internal registers and all the outputs. the uart transmitter output and the receiver input will be disabled during reset time. (see ST16C552/552a external reset conditions for initialization details.) -rxrdy a/b 9,61 o receive ready a/b (active low). this function is associated with the dual channel uarts and provide the rx fifo/ rhr status for individual receive channels (a-b). a logic 0 indicates there is receive data to read/unload, i.e., receive ready status with one or more rx characters available in the fifo/rhr. this pin is a logic 1 when the fifo/rhr is empty or when the programmed trigger level has not been
6 ST16C552/552a rev. 3.30 symbol pin signal type pin description reached. slct 65 i select (with internal pull-up) - general purpose input or line printer select status. normally this pin is connected to a printer output (active low) that indicates the ready status of a printer, i.e., on-line and/or on-line and ready. -slctin 58 i/o select in (open drain, with internal pull-up) - general purpose i/o or line printer select. this pin can be read via bit-3 in the printer command register, or written via bit-3 in the printer control register. as this pin is open-drain, it can be wire-or?d with other outputs. normally this signal is connected with a printer to select the printer with an active low. -strobe 55 i/o strobe (open drain, with internal pull-up) - general purpose i/o or data strobe output. normally this output is connected to a printer and indicates that valid data is available at the printer port (pd0-pd7). -txrdy a/b 22,42 o transmit ready a/b (active low). these outputs provide the tx fifo/thr status for individual transmit channels (a-b). as such, an individual channel?s -txrdy a-b buffer ready status is indicated by logic 0, i.e., at least one location is empty and available in the fifo or thr. this pin goes to a logic 1 when there are no more empty locations in the fifo or thr. vcc 23,40,64 pwr power supply input. -cd a/b 29,8 i carrier detect (active low) - these inputs are associated with individual uart channels a through b. a logic 0 on this pin indicates that a carrier has been detected by the modem for that channel. -cts a/b 28,13 i clear to send (active low) - these inputs are associated with individual uart channels, a through b. a logic 0 on this pin(s) indicates the modem or data set is ready to accept transmit data from the 552/552a for the given channel. status can be tested by reading msr bit-4 for that channel(s). -cts has no effect on the transmit or receive operation. symbol description
7 ST16C552/552a rev. 3.30 symbol pin signal type pin description -dsr a/b 31,5 i data set ready (active low) - these inputs are associated with individual uart channels, a through b. a logic 0 on this pin(s) indicates the modem or data set is powered-on and is ready for data exchange with the uart. this pin has no effect on the uart?s transmit or receive operation. -dtr a/b 25,11 o data terminal ready (active low) - these outputs are associated with individual uart channels, a through b. a logic 0 on this pin(s) indicates that the 552/552a is powered- on and ready. this pin can be controlled via the modem control register for channel(s) a-b. writing a logic 1 to mcr bit-0 will set the -dtr output to logic 0, enabling the modem. this pin will be a logic 1 after writing a logic 0 to mcr bit- 0, or after a reset. this pin has no effect on the uart?s transmit or receive operation. -ri a/b 30,6 i ring indicator (active low) - these inputs are associated with individual uart channels, a through b. a logic 0 on this pin(s) indicates the modem has received a ringing signal from the telephone line(s). a logic 1 transition on this input pin will generate an interrupt for the ringing channel(s). this pin does not have any effect on the transmit or receive operation. -rts a/b 24,12 o request to send (active low) - these outputs are associated with individual uart channels, a through b. a logic 0 on the -rts pin(s) indicates the transmitter has data ready and waiting to send for the given channel(s). writing a logic 1 in the modem control register (mcr bit-1) will set this pin to a logic 0 indicating data is available. after a reset this pin will be set to a logic 1. this pin does not have any effect on the transmit or receive operation. rx a/b 41,62 i receive data input, rx a-b. - these inputs are associated with individual serial channel(s) to the 552. the rx signal will be a logic 1 during reset, idle (no data), or when the transmitter is disabled. during the local loop-back mode, the rx input pins are disabled and tx data is internally connected to the uart rx inputs, internally. symbol description
8 ST16C552/552a rev. 3.30 symbol pin signal type pin description tx a/b 26,10 o transmit data, tx a-b - these outputs are associated with individual serial transmit channel(s) from the 552/552a. the tx signal will be a logic 1 during reset, idle (no data), or when the transmitter is disabled. during the local loop- back mode, the tx output pins are disabled and tx data is internally connected to the uart rx inputs. general description the 552/552a provides serial asynchronous receive data synchronization, parallel-to-serial and serial-to- parallel data conversions for both the transmitter and receiver sections. these functions are necessary for converting the serial data stream into parallel data that is required with digital data systems. synchronization for the serial data stream is accomplished by adding start and stops bits to the transmit data to form a data character (character orientated protocol). data integ- rity is insured by attaching a parity bit to the data character. the parity bit is checked by the receiver for any transmission bit errors. the electronic circuitry to provide all these functions is fairly complex especially when manufactured on a single integrated silicon chip. the 552/552a represents such an integration with greatly enhanced features. the 552/552a is fabricated with an advanced cmos process. the 552/552a is an upward solution that provides 16 bytes of transmit and receive fifo memory, instead of none in the 16c452. the 552/552a is designed to work with high speed modems and shared network environments, that require fast data processing time. increased performance is realized in the 552/552a by the transmit and receive fifo?s. this allows the external processor to handle more networking tasks within a given time. for example, the st16c452 without a receive fifo, will require unloading of the rhr in 95.5 microseconds (this example uses a character length of 11 bits, including start/stop bits at 115.2kbps). this means the external cpu will have to service the receive fifo every 100 microseconds. however with the 16 byte fifo in the 552/552a, the data buffer will not require unloading/loading for 1.53 ms. this increases the service interval giving the external cpu additional time for other applications and reducing the overall uart interrupt servicing time. in addition, the 4 selectable levels of fifo trigger interrupt is uniquely provided for maximum data throughput performance especially when operat- ing in a multi-channel environment. the fifo memory greatly reduces the bandwidth requirement of the external controlling cpu, increases perfor- mance, and reduces power consumption. the 552/552a combines the package functions of a dual uart and a printer interface on a single inte- grated chip. the 552/552a uart is indented to be software compatible with the ins8250/ns16c550 while the bi-directional printer interface mode is in- tended to operate with a centronics type parallel printer. however, the printer interface is designed such that it may be configured to operate with other parallel printer interfaces or used as a general purpose parallel interface. the 552/552a is available in two versions, the ST16C552 and the ST16C552a. the 552a provides a active low (logic 0) interrupt for the printer port (intp) while the 552 provides an active high (logic 1) intp interrupt. additionally, the 552a does not support the power down feature.
9 ST16C552/552a rev. 3.30 the 552/552a is capable of operation to 1.5mbps with a 24 mhz external clock input. with an external clock input of 1.8432 mhz the user can select data rates up to 115.2 kbps. the rich feature set of the 552/552a is available through internal registers. selectable receive fifo trigger levels, selectable tx and rx baud rates, modem interface controls, and a power-down mode are all standard features. following a power on reset or an external reset, the 552/552a is software compat- ible with the previous generation, 16c452. functional descriptions functional modes two functional user modes are selectable for the 552/ 552a package. the first of these provides the dual uart functions, while the other provides the func- tions of a parallel printer interface. these features are available through selection at the package interface select pins. uart a-b functions the uart mode provides the user with the capability to transfer information between an external cpu and the 552/552a package. a logic 0 on chip select pins - csa or -csb allows the user to configure, send data, and/or receive data via the uart channels a-b. printer port functions the printer mode provides the user with the capability to transfer information between an external cpu and the 552/552a parallel printer port. a logic 0 on chip select pin -csp allows the user to configure, send data, and/or receive data via the bi-directional parallel 8-bit data bus, pd0-pd7. internal registers the 552/552a provides 12 internal registers for moni- toring and control of the uart functions and another 6 registers for monitoring and controlling the printer port. these resisters are shown in table 4 below. the uart registers function as data holding registers (thr/rhr), interrupt status and control registers (ier/isr), a fifo control register (fcr), line status and control registers (lcr/lsr), modem status and control registers (mcr/msr), programmable data rate (clock) control registers (dll/dlm), and a user assessable scratchpad register (spr). the printer port registers functions data holding registers (pr), i/ o status register (sr), i/o select register (iosel), and a command and control register (com/con). regis- ter functions are more fully described in the following paragraphs.
10 ST16C552/552a rev. 3.30 table 4, internal register decode a2 a1 a0 read mode write mode general register set (thr/rhr, ier/isr, mcr/msr, lcr/lsr, spr): note 1* 0 0 0 receive holding register transmit holding register 0 0 1 interrupt enable register 0 1 0 interrupt status register fifo control register 0 1 1 line control register 1 0 0 modem control register 1 0 1 line status register 1 1 0 modem status register 1 1 1 scratchpad register scratchpad register baud rate register set (dll/dlm): note *2 0 0 0 lsb of divisor latch lsb of divisor latch 0 0 1 msb of divisor latch msb of divisor latch printer port set (pr/sr/iosel/com/con): note *3 x 0 0 port register port register x 0 1 status register i/o select register x 1 0 command register control register note 1* the general register set is accessible only when cs a or cs b is a logic 0. note 2* the baud rate register set is accessible only when cs a or cs b is a logic 0 and lcr bit-7 is a logic 1. note 3*: printer port register set is accessible only when -csp is a logic 0 in conjunction with the states of the interface signal biden and printer control register bit-5 or iosel register.
11 ST16C552/552a rev. 3.30 fifo operation the 16 byte transmit and receive data fifo?s are enabled by the fifo control register (fcr) bit-0. the user can set the receive trigger level via fcr bits 6/ 7 but not the transmit trigger level. the transmit interrupt trigger level is set to 16 following a reset. the receiver fifo section includes a time-out function to ensure data is delivered to the external cpu. an interrupt is generated whenever the receive holding register (rhr) has not been read following the load- ing of a character or the receive trigger level has not been reached. hardware/software and time-out interrupts the interrupts are enabled by ier bits 0-3. care must be taken when handling these interrupts. following a reset the transmitter interrupt is enabled, the 552/ 552a will issue an interrupt to indicate that transmit holding register is empty. this interrupt must be serviced prior to continuing operations. the lsr register provides the current singular highest priority interrupt only. it could be noted that cts and rts interrupts have lowest interrupt priority. a condition can exist where a higher priority interrupt may mask the lower priority cts/rts interrupt(s). only after servicing the higher pending interrupt will the lower priority cts/ rts interrupt(s) be reflected in the status register. servicing the interrupt without investigating further interrupt conditions can result in data errors. when two interrupt conditions have the same priority, it is important to service these interrupts correctly. receive data ready and receive time out have the same interrupt priority (when enabled by ier bit-3). the receiver issues an interrupt after the number of characters have reached the programmed trigger level. in this case the 552/552a fifo may hold more characters than the programmed trigger level. follow- ing the removal of a data byte, the user should recheck lsr bit-0 for additional characters. a receive time out will not occur if the receive fifo is empty. the time out counter is reset at the center of each stop bit received or each time the receive holding register (rhr) is read (see figure 4, receive time-out inter- rupt). the actual time out value is t ( t ime out length in bits) = 4 x p ( p rogrammed word length) + 12. to convert the time out value to a character value, the user has to consider the complete word length, includ- ing data information length, start bit, parity bit, and the size of stop bit, i.e., 1x, 1.5x, or 2x bit times. example -a: if the user programs a word length of 7, with no parity and one stop bit, the time out will be: t = 4 x 7( programmed word length) +12 = 40 bit times. the character time will be equal to 40 / 9 = 4.4 characters, or as shown in the fully worked out ex- ample: t = [(programmed word length = 7) + (stop bit = 1) + (start bit = 1) = 9]. 40 (bit times divided by 9) = 4.4 characters. example -b: if the user programs the word length = 7, with parity and one stop bit, the time out will be: t = 4 x 7(programmed word length) + 12 = 40 bit times. character time = 40 / 10 [ (programmed word length = 7) + (parity = 1) + (stop bit = 1) + (start bit = 1) = 4 characters. programmable baud rate generator the 552/552a supports high speed modem technolo- gies that have increased input data rates by employing data compression schemes. for example a 33.6kbps modem that employs data compression may require a 115.2kbps input data rate. a 128.0kbps isdn modem that supports data compression may need an input data rate of 460.8kbps. the 552/552a can support a standard data rate of 921.6kbps. single baud rate generator is provided for the trans- mitter and receiver, allowing independent tx/rx channel control. the programmable baud rate gen- erator is capable of accepting an input clock up to 24 mhz, as required for supporting a 1.5mbps data rate. the 552/552a requires that an external clock source be connected to the clk input pin to clock the internal baud rate generator for standard or custom rates. (see baud rate generator programming below). the generator divides the input 16x clock by any divisor from 1 to 2 16 -1. the 552/552a divides the basic external clock by 16. the basic 16x clock provides table rates to support standard and custom applica-
12 ST16C552/552a rev. 3.30 tions using the same system design. the rate table is configured via the dll and dlm internal register functions. customized baud rates can be achieved by selecting the proper divisor values for the msb and lsb sections of baud rate generator. programming the baud rate generator registers dlm (msb) and dll (lsb) provides a user capability for selecting the desired final baud rate. the example in table 5 below, shows the selectable baud rate table available when using a 1.8432 mhz external clock input. table 5, baud rate generator programming table (1.8432 mhz clock): output output user dlm dll baud rate 16 x clock 16 x clock program program mcr divisor divisor value value (decimal) (hex) (hex) (hex) 50 2304 900 09 00 110 1047 417 04 17 150 768 300 03 00 300 384 180 01 80 600 192 c0 00 c0 1200 96 60 00 60 2400 48 30 00 30 4800 24 18 00 18 7200 16 10 00 10 9600 12 0c 00 0c 19.2k 6 06 00 06 38.4k 3 03 00 03 57.6k 2 02 00 02 115.2k 1 01 00 01
13 ST16C552/552a rev. 3.30 dma operation the 552/552a fifo trigger level provides additional flexibility to the user for block mode operation. lsr bits 5-6 provide an indication when the transmitter is empty or has an empty location(s). the user can optionally operate the transmit and receive fifo?s in the dma mode (fcr bit-3). when the transmit and receive fifo?s are enabled and the dma mode is deactivated (dma mode ?0?), the 552/552a activates the interrupt output pin for each data transmit or receive operation. when dma mode is activated (dma mode ?1?), the user takes the advantage of block mode operation by loading or unloading the fifo in a block sequence determined by the receive trigger level and the transmit fifo. in this mode, the 552/552a sets the interrupt output pin when charac- ters in the transmit fifo is below 16, or the characters in the receive fifo?s are above the receive trigger level. power down mode the 552 is designed to operate with low power con- sumption. the 552 (only) is designed with a special power down mode to further reduce power consump- tion when the chip is not being used. when mcr bit- 7 and ier bit-5 are enabled (set to a logic 1), the 552 powers down. the use of two power down enable bits helps to prevent accidental software shut-down. the 552 will remain powered down until disabled by setting either ier bit-5 or mcr bit-7 to a logic 0. loop-back mode the internal loop-back capability allows onboard diag- nostics. in the loop-back mode the normal modem interface pins are disconnected and reconfigured for loop-back internally. mcr register bits 0-3 are used for controlling loop-back diagnostic testing. in the loop-back mode int enable and mcr bit-2 in the mcr register (bits 2,3) control the modem -ri and -cd inputs respectively. mcr signals -dtr and -rts (bits 0-1) are used to control the modem -cts and -dsr inputs respectively. the transmitter output (tx) and the receiver input (rx) are disconnected from their associated interface pins, and instead are connected together internally (see figure 6). the -cts, -dsr, - cd, and -ri are disconnected from their normal modem control inputs pins, and instead are connected internally to -dtr, -rts, int enable and mcr bit-2. loop-back test data is entered into the transmit hold- ing register via the user data bus interface, d0-d7. the transmit uart serializes the data and passes the serial data to the receive uart via the internal loop- back connection. the receive uart converts the serial data back into parallel data that is then made available at the user data interface, d0-d7. the user optionally compares the received data to the initial transmitted data for verifying error free operation of the uart tx/rx circuits. in this mode, the receiver and transmitter interrupts are fully operational. the modem control interrupts are also operational. however, the interrupts can only be read using lower four bits of the modem control register (mcr bits 0-3) instead of the four modem status register bits 4-7. the interrupts are still con- trolled by the ier.
14 ST16C552/552a rev. 3.30 figure 6, internal loop-back mode diagram d0-d7 -ior -iow -reset biden a0-a2 -csa -csb -csp i nt a,b intp -rxrdy -txrdy tx a,b rx a,b data bus & control logic register select logic interrupt control logic transmit fifo registers transmit shift register receive fifo registers receive shift register inter connect bus lines & control signals clock & baud rate generator clk printer data ports pd0-pd7 printer control logic -strobe init -autofdx -selctin pe, select -busy, -ac k error modem control logic -cts -rts -dtr -dsr -ri -cd (-op1) (-op2) mcr bit-4=1
15 ST16C552/552a rev. 3.30 have internal pull-up resistors and can be wire-or?d. normally, -strobe is used to strobe pd0-pd7 bus data into a printer input buffer. -slctin normally selects the printer while autofdxt signals the printer to auto-linefeed. other signals provide similar printer functions but are not bi-directional. the printer func- tions for these signals are described in table 1, symbol description. the interface provides a mode steering signal called biden. biden controls the bi-directional 8-bit data bus (pd0-pd7) direction, input or output. when biden is a logic 1 a single control bit (d5) in the control register sets the input or output mode. setting biden to a logic 0 however sets an ibm interface compatible mode. in this mode the bus direction (input/output) is set by eight data bits in the iosel register. an aa (hex) pattern sets the input mode while a 55 (hex) pattern sets the output mode. i/o direction is depicted in table 6 below. printer port the 552/552a contains a general purpose 8-bit paral- lel interface port that is designed to directly interface with a centronics printer. a number of the control/ interrupt signals and the 8-bit data bus have been designed as bi-directional data buses. this allows the interface to function with other device parallel data bus applications. signal -ack is used to generate an -intp interface interrupt that would normally be con- nected to the user cpu. -intp can be made to follow the -ack signal, normal mode (see figure 7) or it can be configured for the latch mode. in the latch mode the interrupt is not cleared until printer status register (sr) is read. another signal (init) can be made to function as an outgoing or incoming interrupt, or combined with other interrupts to provide a common wire-or interrupt output. interface signals -strobe, -autofdxt, and -slctin are bi-directional and can be used as combi- nations of input and/or output functions. the signals table 6, pd0-pd7 i/o direction mode selection port direction biden control register (d5) i/o select register input mode 0 x (note 4) aa hex output mode 0 x (note 4) 55 hex output mode 1 0 x (note 4) input mode 1 1 x (note 4) note: 4 = don?t care
16 ST16C552/552a rev. 3.30 register functional descriptions the following table delineates the assigned bit functions for the eighteen 552/552a internal registers. the assigned bit functions are more fully defined in the following paragraphs. table 7, ST16C552/552a internal registers a2 a1 a0 register bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [default] note 5* general register set: note 1* 0 0 0 rhr [xx] b it-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 0 0 0 thr [xx] b it-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 0 0 1 ier [00] 0 0 en 0 m odem r eceive transmit receive pwr status line holding holding down interrupt status register register mode interrupt interrupt 0 1 0 fcr [00] rcvr rcvr 0 0 dma xmit rcvr fifo trigger trigger mode fifo fifo enable (msb) (lsb) select reset r eset 0 1 0 isr [01] fifo?s fifo?s 0 0 int int int int enabled enabled prio rity priority priority status bit-2 bit-1 bit-0 0 1 1 lcr [00] d ivisor set set even parity stop word word latch break parity parity enable bits l ength length enable b it-1 bit-0 1 0 0 mcr [00] pwr 0 0 loop int a/b [x] -rts -dtr down back enable 1 0 1 lsr [60] fifo thr & thr. break framing parity overrun receive data tsr empty interrupt error error error data error empty ready 1 1 0 msr [x0] cd ri dsr cts delta delta delta delta -cd -ri -dsr -cts 1 1 1 spr [ff] b it-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 special register set: note *2 0 0 0 dll [xx] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 0 0 1 dlm [xx] b it-15 bit-14 bit-13 bit-12 bit-11 bit-10 bit-9 bit-8
17 ST16C552/552a rev. 3.30 a2 a1 a0 register bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [default] note 5* printer port register set: note 3* [x] 0 0 pr[00] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [x] 0 0 pr[00] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [x] 0 1 sr[4f] -busy -ack pe slct error -irq logic logic state ?1? ?1? [x] 0 1 iosel bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [x] 1 0 com[e0] logic logic logic -intp -slctin init -auto - strobe ?1? ?1? ?1? enable fdxt [x] 1 0 con[00] [x] [x] pd 0-7 -intp -slctin init -auto - strobe in/out enable fdxt note 1* the general register set is accessible only when cs a or cs b is a logic 0. note 2* the baud rate register set is accessible only when cs a or cs b is a logic 0 and lcr bit-7 is a logic 1. note 3*: printer port register set is accessible only when -csp is a logic 0 in conjunction with the states of the interface signal biden and printer control register bit-5 or iosel register. note 5* the value between the square brackets represents the register?s initialized hex value, x =n/a. modem (uart) register descriptions transmit (thr) and receive (rhr) holding reg- isters the serial transmitter section consists of an 8-bit transmit hold register (thr) and transmit shift register (tsr). the status of the thr is provided in the line status register (lsr). writing to the thr transfers the contents of the data bus (d7-d0) to the thr, providing that the thr or tsr is empty. the thr empty flag in the lsr register will be set to a logic 1 when the transmitter is empty or when data is transferred to the tsr. note that a write operation can be performed when the transmit holding register empty flag is set (logic 0 = fifo full, logic 1= at least one fifo location available). the serial receive section also contains an 8-bit receive holding register, rhr. receive data is removed from the 552/552a and receive fifo by reading the rhr register. the receive section pro- vides a mechanism to prevent false starts. on the falling edge of a start or false start bit, an internal receiver counter starts counting clocks at the 16x clock rate. after 7 1/2 clocks the start bit time should be shifted to the center of the start bit. at this time the start bit is sampled and if it is still a logic 0 it is validated. evaluating the start bit in this manner prevents the receiver from assembling a false charac- ter. receiver status codes will be posted in the lsr.
18 ST16C552/552a rev. 3.30 interrupt enable register (ier) the interrupt enable register (ier) masks the inter- rupts from receiver ready, transmitter empty, line status and modem status registers. these interrupts would normally be seen on the int a,b output pins. ier vs receive fifo interrupt mode operation when the receive fifo (fcr bit-0 = a logic 1) and receive interrupts (ier bit-0 = logic 1) are enabled, the receive interrupts and register status will reflect the following: a) the receive data available interrupts are issued to the external cpu when the fifo has reached the programmed trigger level. it will be cleared when the fifo drops below the programmed trigger level. b) fifo status will also be reflected in the user accessible isr register when the fifo trigger level is reached. both the isr register status bit and the interrupt will be cleared when the fifo drops below the trigger level. c) the data ready bit (lsr bit-0) is set as soon as a character is transferred from the shift register to the receive fifo. it is reset when the fifo is empty. ier vs receive/transmit fifo polled mode op- eration when fcr bit-0 equals a logic 1; resetting ier bits 0-3 enables the 552/552a in the fifo polled mode of operation. since the receiver and transmitter have separate bits in the lsr either or both can be used in the polled mode by selecting respective transmit or receive control bit(s). a) lsr bit-0 will be a logic 1 as long as there is one byte in the receive fifo. b) lsr bit 1-4 will provide the type of errors encoun- tered, if any. c) lsr bit-5 will indicate when the transmit fifo is empty. d) lsr bit-6 will indicate when both the transmit fifo and transmit shift register are empty. e) lsr bit-7 will indicate any fifo data errors. ier bit-0: this interrupt will be issued when the fifo has reached the programmed trigger level or is cleared when the fifo drops below the trigger level in the fifo mode of operation. logic 0 = disable the receiver ready interrupt. (normal default condition) logic 1 = enable the receiver ready interrupt. ier bit-1: this interrupt will be issued whenever the thr is empty and is associated with bit-1 in the lsr register. logic 0 = disable the transmitter empty interrupt. (normal default condition) logic 1 = enable the transmitter empty interrupt. ier bit-2: this interrupt will be issued whenever a fully as- sembled receive character is transferred from the rsr to the rhr/fifo, i.e., data ready, lsr bit-0. logic 0 = disable the receiver line status interrupt. (normal default condition) logic 1 = enable the receiver line status interrupt. ier bit-3: logic 0 = disable the modem status register interrupt. (normal default condition) logic 1 = enable the modem status register interrupt. ier bit -4: not used - initialized to a logic 0. ier bit-5: (ST16C552 only) logic 0 = disable the power down mode. (normal default condition). the ST16C552a does not support the power down mode and this bit is set to ?0?. logic 1 = enable the power down mode (mcr bit-7 must also be a logic 1 before power down will be activated).
19 ST16C552/552a rev. 3.30 ier bit 6-7: not used - initialized to a logic 0. fifo control register (fcr) this register is used to enable the fifo?s, clear the fifo?s, set the receive fifo trigger levels, and select the dma mode. the dma, and fifo modes are defined as follows: dma mode mode 0 set and enable the interrupt for each single transmit or receive operation, and is similar to the st16c450 mode. transmit ready (-txrdy) will go to a logic 0 when ever an empty transmit space is available in the transmit holding register (thr). receive ready (-rxrdy) will go to a logic 0 when- ever the receive holding register (rhr) is loaded with a character. mode 1 set and enable the interrupt in a block mode operation. the transmit interrupt is set when the transmit fifo is below the programmed trigger level. -txrdy remains a logic 0 as long as one empty fifo location is available. the receive interrupt is set when the receive fifo fills to the programmed trigger level. however the fifo continues to fill regardless of the programmed level until the fifo is full. -rxrdy remains a logic 0 as long as the fifo fill level is above the programmed trigger level. fcr bit-0: logic 0 = disable the transmit and receive fifo. (normal default condition) logic 1 = enable the transmit and receive fifo. this bit must be a ?1? when other fcr bits are written to or they will not be programmed. fcr bit-1: logic 0 = no fifo receive reset. (normal default condition) logic 1 = clears the contents of the receive fifo and resets the fifo counter logic (the receive shift regis- ter is not cleared or altered). this bit will return to a logic 0 after clearing the fifo. fcr bit-2: logic 0 = no fifo transmit reset. (normal default condition) logic 1 = clears the contents of the transmit fifo and resets the fifo counter logic (the transmit shift regis- ter is not cleared or altered). this bit will return to a logic 0 after clearing the fifo. fcr bit-3: logic 0 = set dma mode ?0?. (normal default condi- tion) logic 1 = set dma mode ?1.? transmit operation in mode ?0?: when the 552/552a is in the st16c450 mode (fifo?s disabled, fcr bit-0 = logic 0) or in the fifo mode (fifo?s enabled, fcr bit-0 = logic 1, fcr bit-3 = logic 0) and when there are no characters in the transmit fifo or transmit holding register, the -txrdy pin will be a logic 0. once active the -txrdy pin will go to a logic 1 after the first character is loaded into the transmit holding register. receive operation in mode ?0?: when the 552/552a is in mode ?0? (fcr bit-0 = logic 0) or in the fifo mode (fcr bit-0 = logic 1, fcr bit- 3 = logic 0) and there is at least one character in the receive fifo, the -rxrdy pin will be a logic 0. once active the -rxrdy pin will go to a logic 1 when there are no more characters in the receiver. transmit operation in mode ?1?: when the 552/552a is in fifo mode ( fcr bit-0 = logic 1, fcr bit-3 = logic 1 ), the -txrdy pin will be a logic 1 when the transmit fifo is completely full. it will be a logic 0 if one or more fifo locations are empty. receive operation in mode ?1?: when the 552/552a is in fifo mode (fcr bit-0 = logic 1, fcr bit-3 = logic 1) and the trigger level has been reached, or a receive time out has occurred, the - rxrdy pin will go to a logic 0. once activated, it will go to a logic 1 after there are no more characters in the fifo.
20 ST16C552/552a rev. 3.30 fcr bit 4-5: not used - initialized to a logic 0. fcr bit 6-7: (logic 0 or cleared is the default condi- tion, rx trigger level = 1) these bits are used to set the trigger level for the receive fifo interrupt. an interrupt is generated when the number of charac- ters in the fifo equals the programmed trigger level. however the fifo will continue to be loaded until it is full. bit-7 bit-6 rx fifo trigger level 00 01 01 04 10 08 11 14 interrupt status register (isr) the 552/552a provides four levels of prioritized inter- rupts to minimize external software interaction. the interrupt status register (isr) provides the user with four interrupt status bits. performing a read cycle on the isr will provide the user with the highest pending interrupt level to be serviced. no other interrupts are acknowledged until the pending interrupt is serviced. whenever the interrupt status register is read, the interrupt status is cleared. however it should be noted that only the current pending interrupt is cleared by the read. a lower level interrupt may be seen after reread- ing the interrupt status bits. the interrupt source table 8 (below) shows the data values (bits 0-3) for the four prioritized interrupt levels and the interrupt sources associated with each of these interrupt levels: table 8, interrupt source table priority [isr bits] level bit-3 bit-2 bit-1 bit-0 source of the interrupt 1 0110lsr (r eceiver line status register) 2 0100 rxrdy (received data ready) 2 1100 rxrdy (receive data time out) 3 0010 txrdy (transmitter holding register empty) 4 0000msr (m odem status register)
21 ST16C552/552a rev. 3.30 isr bit-0: logic 0 = an interrupt is pending and the isr contents may be used as a pointer to the appropriate interrupt service routine. logic 1 = no interrupt pending. (normal default condi- tion) isr bit 1-3: (logic 0 or cleared is the default condition) these bits indicate the source for a pending interrupt at interrupt priority levels 1, 2, and 3 (see interrupt source table). isr bit 4-5: (logic 0 or cleared is the default condition) not used - initialized to a logic 0. isr bit 6-7: (logic 0 or cleared is the default condition) these bits are set to a logic 0 when the fifo?s are not being used in the 16c450 mode. they are set to a logic 1 when the fifo?s are enabled in the 16c552/552a mode. line control register (lcr) the line control register is used to specify the asynchronous data communication format. the word length, the number of stop bits, and the parity are selected by writing the appropriate bits in this register. lcr bit 0-1: (logic 0 or cleared is the default condi- tion) these two bits specify the word length to be transmit- ted or received. bit-1 bit-0 word l ength 00 5 01 6 10 7 11 8 lcr bit-2: (logic 0 or cleared is the default condition) the length of stop bit is specified by this bit in conjunction with the programmed word length. bit-2 word l ength stop bit length (bit time(s)) 0 5,6,7,8 1 1 5 1-1/2 1 6,7,8 2 lcr bit-3: parity or no parity can be selected via this bit. logic 0 = no parity. (normal default condition) logic 1 = a parity bit is generated during the transmis- sion, receiver checks the data and parity for transmis- sion errors. lcr bit-4: if the parity bit is enabled with lcr bit-3 set to a logic 1, lcr bit-4 selects the even or odd parity format. logic 0 = odd parity is generated by forcing an odd number of logic 1?s in the transmitted data. the receiver must be programmed to check the same format. (normal default condition) logic 1 = even parity is generated by forcing an even the number of logic 1?s in the transmitted. the receiver must be programmed to check the same format. lcr bit-5: if the parity bit is enabled, lcr bit-5 selects the forced parity format. lcr bit-5 = logic 0, parity is not forced. (normal default condition) lcr bit-5 = logic 1 and lcr bit-4 = logic 0, parity bit is forced to a logical 1 for the transmit and receive data. lcr bit-5 = logic 1 and lcr bit-4 = logic 1, parity bit is forced to a logical 0 for the transmit and receive data.
22 ST16C552/552a rev. 3.30 lcr lcr lcr parity selection bit-5 bit-4 bit-3 x x 0 no parity 0 0 1 odd parity 0 1 1 even parity 1 0 1 force parity odd parity 1 1 1 forced even parity lcr bit-6: when enabled the break control bit causes a break condition to be transmitted (the tx output is forced to a logic 0 state). this condition exists until disabled by setting lcr bit-6 to a logic 0. logic 0 = no tx break condition. (normal default condition) logic 1 = forces the transmitter output (tx) to a logic 0 for alerting the remote receiver to a line break condition. lcr bit-7: the internal baud rate counter latch and enhance feature mode enable. logic 0 = divisor latch disabled. (normal default condition) logic 1 = divisor latch and enhanced feature register enabled. modem control register (mcr) this register controls the interface with the modem or a peripheral device. mcr bit-0: logic 0 = force -dtr output to a logic 1. (normal default condition) logic 1 = force -dtr output to a logic 0. mcr bit-1: logic 0 = force -rts output to a logic 1. (normal default condition) logic 1 = force -rts output to a logic 0. mcr bit-2: this bit is used in the loop-back mode only. in the loop-back mode this bit is use to write the state of the modem -ri interface signal. mcr bit-3: ( used to control the modem -cd signal in the loop-back mode.) logic 0 = forces int (a-b) outputs to the three state mode. (normal default condition) in the loop-back mode, sets -cd internally to a logic 1. logic 1 = forces the int (a-b) outputs to the active mode. in the loop-back mode, sets -cd internally to a logic 0. mcr bit-4: logic 0 = disable loop-back mode. (normal default condition) logic 1 = enable local loop-back mode (diagnostics). mcr bit 5-6: not used - initialized to a logic 0. mcr bit-7: logic 0 = disable power down mode. (normal, default condition, 552 only) logic 1 = enable power down mode (ier bit-5 must also be a logic 1 before power down will be activated). line status register (lsr) this register provides the status of data transfers between. the 552/552a and the cpu. lsr bit-0: logic 0 = no data in receive holding register or fifo. (normal default condition) logic 1 = data has been received and is saved in the receive holding register or fifo. lsr bit-1: logic 0 = no overrun error. (normal default condition) logic 1 = overrun error. a data overrun error occurred in the receive shift register. this happens when addi- tional data arrives while the fifo is full. in this case the previous data in the shift register is overwritten. note that under this condition the data byte in the receive shift register is not transferred into the fifo, therefore the data in the fifo is not corrupted by the error.
23 ST16C552/552a rev. 3.30 lsr bit-2: logic 0 = no parity error. (normal default condition) logic 1 = parity error. the receive character does not have correct parity information and is suspect. in the fifo mode, this error is associated with the character at the top of the fifo. lsr bit-3: logic 0 = no framing error. (normal default condition) logic 1 = framing error. the receive character did not have a valid stop bit(s). in the fifo mode this error is associated with the character at the top of the fifo. lsr bit-4: logic 0 = no break condition. (normal default condi- tion) logic 1 = the receiver received a break signal (rx was a logic 0 for one character frame time). in the fifo mode, only one break character is loaded into the fifo. lsr bit-5: this bit is the transmit holding register empty indi- cator. this bit indicates that the uart is ready to accept a new character for transmission. in addition, this bit causes the uart to issue an interrupt to cpu when the thr interrupt enable is set. the thr bit is set to a logic 1 when a character is transferred from the transmit holding register into the transmitter shift register. the bit is reset to logic 0 concurrently with the loading of the transmitter holding register by the cpu. in the fifo mode this bit is set when the transmit fifo is empty; it is cleared when at least 1 byte is written to the transmit fifo. lsr bit-6: this bit is the transmit empty indicator. this bit is set to a logic 1 whenever the transmit holding register and the transmit shift register are both empty. it is reset to logic 0 whenever either the thr or tsr contains a data character. in the fifo mode this bit is set to one whenever the transmit fifo and transmit shift register are both empty. lsr bit-7: logic 0 = no error. (normal default condition) logic 1 = at least one parity error, framing error or break indication is in the current fifo data. this bit is cleared when rhr register is read. modem status register (msr) this register provides the current state of the control interface signals from the modem, or other peripheral device that the 552/552a is connected to. four bits of this register are used to indicate the changed informa- tion. these bits are set to a logic 1 whenever a control input from the modem changes state. these bits are set to a logic 0 whenever the cpu reads this register. msr bit-0: logic 0 = no -cts change (normal default condition) logic 1 = the -cts input to the 552/552a has changed state since the last time it was read. a modem status interrupt will be generated. msr bit-1: logic 0 = no -dsr change. (normal default condition) logic 1 = the -dsr input to the 552/552a has changed state since the last time it was read. a modem status interrupt will be generated. msr bit-2: logic 0 = no -ri change. (normal default condition) logic 1 = the -ri input to the 552/552a has changed from a logic 0 to a logic 1. a modem status interrupt will be generated. msr bit-3: logic 0 = no -cd change. (normal default condition) logic 1 = indicates that the -cd input to the has changed state since the last time it was read. a modem status interrupt will be generated. msr bit-4: normally msr bit-4 bit is the compliment of the -cts input. however in the loop-back mode, this bit is equivalent to the rts bit in the mcr register. msr bit-5: dsr (active high, logical 1). normally this bit is the compliment of the -dsr input. in the loop-back mode, this bit is equivalent to the dtr bit in the mcr register.
24 ST16C552/552a rev. 3.30 msr bit-6: ri (active high, logical 1). normally this bit is the compliment of the -ri input. in the loop-back mode this bit is equivalent to mcr bit-2 in the mcr register. msr bit-7: cd (active high, logical 1). normally this bit is the compliment of the -cd input. in the loop-back mode this bit is equivalent to mcr bit-3 in the mcr register. note: whenever any msr bit 0-3: is set to logic ?1?, a modem status interrupt will be generated. scratchpad register (spr) the ST16C552/552a provides a temporary data reg- ister to store 8 bits of user information. printer port register descriptions port register (pr) pr bit 0-7: printer data port (bi-directional) - these pins are the eight bit data bus for transferring information to or from an external device (usually a printer). d0 is the least significant bit. pd7-pd0 are latched during a write cycle (output mode). i/o select register (iosel) this bit is used in conjunction with the state of biden to set the direction (input/output) of the pd7-pd0 data bus. this register is used only when biden is a logic 0. logic 55 (hex) + biden 0 = pd7-pd0 are set for output mode logic aa (hex) + biden 0 = pd7-pd0 are set for input mode status register (sr) this register provides the printer port input logical states and the status of the interrupt -intp based on the condition of the -ack printer port interface signal. the logical state of these pins is dependent on exter- nal interface signals. sr bit 1-0: not used - initialized to a logic 1. sr bit-2: logic 0 = an interrupt is pending when intsel is a logic 0, sr bit-2 basically tracks the -ack input interface pin (returns to a logic 1 when the -ack input returns to a logic 1). however when intsel is a logic 1, the latched mode is selected, sr bit-2 goes to a logic 0 with the -ack input but does not return to a logic 1 until the end of the read cycle, i.e., reading sr will set this bit to a logic 1. logic 1 = no interrupt is pending. (normal inactive state) sr bit-3: logic 0 = -error input is a logic 0. logic 1 = -error input is a logic 1. (normal inactive state) sr bit-4: logic 0 = slct input is a logic 0. (normal inactive state) logic 1 = slct input is a logic 1. sr bit-5: logic 0 = pe input is a logic 0. (normal inactive state) logic 1 = pe input is a logic 1. sr bit-6: logic 0 = -ack input is a logic 0. logic 1 = -ack input is a logic 1. (normal inactive state) sr bit-7: logic 0 = busy input is a logic 0 logic 1 = busy input is a logic 1 (normal inactive state) command register (com) this register provides the printer port input logical states and the status of the printer interrupt init, which is based on the state of con bit-1. com bit-0: -strobe is a bi-directional signal with an open
25 ST16C552/552a rev. 3.30 source driver and internal pull-up so that it may be wire-or?d with other outputs. com bit-1 is used to read status while con bit 1 is used to set an output state. if it is to function as an input, con bit-1 shall be set to a logic 1 first. logic 0 = -strobe pin is a logic 1. (normal default condition) logic 1 = -strobe pin is a logic 0. com bit-1: -autofdxt is a bi-directional signal with an open source driver and internal pull-up so that it may be wire-or?d with other outputs. com bit-1 is used to read status while con bit 1 is used to set an output state. if it is to function as an input, con bit-1 shall be set to a logic 1 first. logic 0 = -autofdxt pin is a logic 1. (normal default condition) 1= -autofdxt pin is a logic 0. com bit-2: init is a bi-directional signal with an open source driver and internal pull-up so that it may be wire-or?d with other outputs. com bit-2 is used to read status while con bit 2 is used to set an output state. if it is to function as an input, con bit-1 shall be set to a logic 1 first. logic 0 = init pin is a logic 0. (normal default condition) logic 1 = init pin is a logic 1. com bit-3: -slctin is a bi-directional signal with an open source driver and internal pull-up so that it may be wire-or?d with other outputs. com bit-1 is used to read status while con bit 1 is used to set an output state. if it is to function as an input, con bit-1 shall be set to a logic 1 first. logic 0 = -slctin pin is a logic 1 (normal default condition) logic 1 = -slctin pin is a logic 0 com bit-4: this bit allows the state of -intp to be read back by the external cpu. logic 0 = interrupt (-intp output) is disabled (normal default condition) logic 1 = interrupt (-intp output) is enabled com bit 5-7: not used - initialized to a logic 1. control register (con) this register provides control of the printer port output logical states and controls the printer interrupts init and -intp. with the exception of pd 0-7 in/out, the status of this register may be read by reading the com register. con bit-0: the -strobe output control bit is under software control, i.e., the hardware will not generate a strobe. it is up to software to return the state of -strobe to the inactive (logic 1) state. the hardware driver is open drain so that -strobe may be wire-or?d. the state of this bit can be read using com bit-0. logic 0 = -strobe output is set to a logic 1. (normal default condition) logic 1 = -strobe output is set to a logic 0. con bit-1: the -autofdxt output control bit is set by software using con bit-1. the hardware driver is open drain so that -autofdxt may be wire-or?d. the state of this bit can be read using com bit-1. logic 0 = -autofdxt output is set to a logic 1. (normal default condition) logic 1 = -autofdxt output is set to a logic 0. con bit-2: the init output control bit is set by software using con bit-2. the hardware driver is open drain so that init may be wire-or?d. the state of this bit can be read using com bit-2. logic 0 = init output is set to a logic 0. (normal default condition) logic 1 = init output is set to a logic 1. con bit-3: the -slctin output control bit is set by software using con bit-3. the hardware driver is open drain so that -autofdxt may be wire-or?d. the state of this bit can be read using com bit-3.
26 ST16C552/552a rev. 3.30 logic 0 = -slctin output is set to a logic 1. (normal default condition) logic 1 = -slctin output is set to a logic 0. con bit-4: this bit enables or masks the printer interrupt output -intp. the state of this bit can be read using com bit- 4. logic 0 = disable -intp output. (normal default con- dition) logic 1 = enable -intp output. con bit-5: this bit is used in conjunction with the state of biden to set the direction (input/output) of the pd7-pd0 data bus. logic 0 + biden 1 = pd7-pd0 are set for output mode (normal default condition) logic 1 + biden 1 = pd7-pd0 are set for input mode con bit 6-7: not used - initialized to a logic 1. ST16C552/552a external reset condition registers reset state (uart) ier bits 0-7=0 isr isr bit-0=1, isr bits 1-7=0 lcr lcr bits 0-7=0 mcr mcr bits 0-7=0 lsr lsr bits 0-4=0, lsr bits 5-6=1 lsr, bit 7=0 msr msr bits 0-3=0, msr bits 4-7=input signals fcr fcr bits 0-7=0 registers reset state printer port iosel iosel bits-0-7=0 sr sr bits 0-1=1, bits 2-7=input signals com com bits 0-4=0, bits 5-7=1 con con bits 0-5=0, bits 6-7=1 signals reset state tx a/b high -rts a/b high -dtr a/b high int a/b, p three state mode -rxrdy a/b high -txrdy a/b low pd0-pd7 low, output mode -strobe high, output mode -autofdxt high, output mode init low, output mode -slctin high, output mode
27 ST16C552/552a rev. 3.30 t 1w ,t 2w clock pulse duration 17 17 ns t 3w oscillator/clock frequency 8 24 mhz t 6s address setup time 5 0 ns t 7d -ior delay from chip select 10 10 ns t 7w -ior strobe width 35 25 ns t 7h chip select hold time from -ior 0 0 ns t 9d read cycle delay 40 30 ns t 12d delay from -ior to data 35 25 ns t 12h data disable time 25 15 ns t 13d -iow delay from chip select 10 10 ns t 13w -iow strobe width 40 25 ns t 13h chip select hold time from -iow 0 0 ns t 15d write cycle delay 40 30 ns t 16s data setup time 20 15 ns t 16h data hold time 5 5 ns t 17d delay from -iow to output 50 40 ns 100 pf load t 18d delay to set interrupt from modem 40 35 ns 100 pf load input t 19d delay to reset interrupt from -ior 40 35 ns 100 pf load t 20d delay from stop to set interrupt 1 1 rclk t 21d delay from -ior to reset interrupt 45 40 ns 100 pf load t 22d delay from stop to interrupt 45 40 ns t 23d delay from initial int reset to transmit 8 24 8 24 rclk start t 24d delay from -iow to reset interrupt 45 40 ns t 25d delay from stop to set -rxrdy 1 1 rclk t 26d delay from -ior to reset -rxrdy 45 40 ns t 27d delay from -iow to set -txrdy 45 40 ns t 28d delay from start to reset -txrdy 8 8 rclk t 39w -ack pulse width 75 75 ns t 40s pd7 - pd0 setup time 15 10 ns t 41h pd7 - pd0 hold time 30 25 ns t 42d delay from -ack low to interrupt low 10 5 ns t 43d delay from -ior to reset interrupt 10 5 ns t r reset pulse width 40 40 ns n baud rate devisor 1 2 16 -1 1 2 16 -1 rclk ac electrical characteristics t a =0 - 70c (-40 - +85c for industrial grade packages), vcc=3.3 - 5.0 v 10% unless otherwise specified. symbol parameter limits limits units con ditions 3.3 5.0 min max min max
28 ST16C552/552a rev. 3.30 v ilck clock input low level -0.3 0.6 -0.5 0.6 v v ihck clock input high level 2.4 vcc 3.0 vcc v v il input low level -0.3 0.8 -0.5 0.8 v v ih input high level 2.0 2.2 vcc v v ol output low level on all outputs 0.4 v i ol = 4 ma v ol output low level on all outputs 0.4 v i ol = 4 ma v oh output high level 2.4 v i oh = -4 ma v oh output high level 2.0 v i oh = -1 ma i il input leakage 10 10 m a i cl clock leakage 10 10 m a i cc avg power supply current 1.5 3 ma c p input capacitance 5 5 pf r in internal pull-up resistance 9 22 k w note: see the symbol description table, for a listing of pins having internal pull-up resistors. absolute maximum ratings supply range 7 volts voltage at any pin gnd - 0.3 v to vcc +0.3 v operating temperature -40 c to +85 c storage temperature -65 c to 150 c package dissipation 500 mw dc electrical characteristics t a =0 - 70c (-40 - +85c for industrial grade packages), vcc=3.3 - 5.0 v 10% unless otherwise specified. symbol parameter limits limits units con ditions 3.3 5.0 min max min max
29 ST16C552/552a rev. 3.30 general write timing general read timing a0-a2 -cs -iow d0-d7 t6s t13w t13d t13h t15d t16s t16h x552-wd-1 valid address active active data a0-a2 -cs -ior d0-d7 t6s t7w t7d t7h t9d t12d t12h x552-rd-1 active data valid address active
30 ST16C552/552a rev. 3.30 external clock timing modem input/output timing -iow -rts -dtr -cd -cts -dsr int -ior -ri t17d t18d t18d t19d t18d x552-md-1 active active change of state change of state active active active change of state change of state change of state active active t3w t1w t2w external clock ex-ck-1
31 ST16C552/552a rev. 3.30 receive timing stop bit parity bit data bits (5-8) d0 d1 d2 d3 d4 d5 d6 d7 5 data bits 6 data bits 7 data bits start bit rx next data start bit int -ior t20d t21d 16 baud rate clock x552-rx-1 active active
32 ST16C552/552a rev. 3.30 receive ready timing in none fifo mode stop bit parity bit data bits (5-8) d0 d1 d2 d3 d4 d5 d6 d7 start bit rx next data start bit -rxrdy -ior t25d t26d x552-rx-2 active data ready active
33 ST16C552/552a rev. 3.30 receive timing in fifo mode stop bit parity bit data bits (5-8) d0 d1 d2 d3 d4 d5 d6 d7 start bit rx first byte that reaches the trigger level -rxrdy -ior t25d t26d x552-rx-3 active data ready active
34 ST16C552/552a rev. 3.30 transmit timing stop bit parity bit data bits (5-8) d0 d1 d2 d3 d4 d5 d6 d7 5 data bits 6 data bits 7 data bits start bit tx next data start bit int t22d t24d 16 baud rate clock x552-tx-1 -iow t23d active active tx ready active
35 ST16C552/552a rev. 3.30 transmit ready timing in none fifo mode stop bit parity bit data bits (5-8) d0 d1 d2 d3 d4 d5 d6 d7 start bit tx next data start bit -txrdy t28d x552-tx-2 -iow t27d byte #1 active active transmitter ready transmitter not ready d0-d7
36 ST16C552/552a rev. 3.30 transmit ready timing in fifo mode stop bit parity bit data bits (5-8) d0 d1 d2 d3 d4 d5 d6 d7 5 data bits 6 data bits 7 data bits start bit tx -iow d0-d7 -txrdy byte #16 t28d t27d x552-tx-3 fifo full active
37 ST16C552/552a rev. 3.30 printer port timing (552 only) -ack intp -ior interrupt latched mode select normal mode intsel t40d t42d t43d t39w valid data t40s t41h pd0-pd7 x552-pr-1
38 ST16C552/552a rev. 3.30 printer port timing (552a only) -ack intp -ior interrupt latched mode select normal mode intsel t40d t42d t43d t39w valid data t40s t41h pd0-pd7 x552-pr-2
package dimensions 68 lead plastic leaded chip carrier (plcc) rev. 1.00 1 d d 1 d d 1 d 3 d 2 a a 1 2 6 8 a 0.165 0.200 4.19 5.08 a 1 0.090 0.130 2.29 3.30 a 2 0.020 . 0.51 b 0.013 0.021 0.33 0.53 b 1 0.026 0.032 0.66 0.81 c 0.008 0.013 0.19 0.32 d 0.985 0.995 25.02 25.27 d 1 0.950 0.958 24.13 24.33 d 2 0.890 0.930 22.61 23.62 d 3 0.80 0 typ. 20.3 2 typ. e 0.050 bsc 1.27 bsc h1 0.042 0.056 1.07 1.42 h2 0.042 0.048 1.07 1.22 r 0.025 0.045 0.64 1.14 symbol min max min max inches millimeters b a 2 b 1 e seating plane d 3 note: the control dimension is the inch column 45 x h2 45 x h1 c r
notice exar corporation reserves the right to make changes to the products contained in this publication in order to im- prove design, performance or reliability. exar corporation assumes no responsibility for the use of any circuits de- scribed herein, conveys no license under any patent or other right, and makes no representation that the circuits are free of patent infringement. charts and schedules contained here in are only for illustration purposes and may vary depending upon a user's specific application. while the information in this publication has been carefully checked; no responsibility, however, is assumed for inaccuracies. exar corporation does not recommend the use of any of its products in life support applications where the failure or malfunction of the product can reasonably be expected to cause failure of the life support system or to significantly affect its safety or effectiveness. products are not authorized for use in such applications unless exar corporation receives, in writing, assurances to its satisfaction that: (a) the risk of injury or damage has been minimized; (b) the user assumes all such risks; (c) potential liability of exar corporation is adequately protected under the circum- stances. copyright 1994 exar corporation reproduction, in part or whole, without the prior written consent of exar corporation is prohibited.


▲Up To Search▲   

 
Price & Availability of ST16C552

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X